design pattern for unit testing? [duplicate]

Posted by Maddy.Shik on Programmers See other posts from Programmers or by Maddy.Shik
Published on 2010-12-30T11:11:38Z Indexed on 2013/06/24 22:31 UTC
Read the original article Hit count: 344

This question already has an answer here:

I am beginner in developing test cases, and want to follow good patterns for developing test cases rather than following some person or company's specific ideas. Some people don't make test cases and just develop the way their senior have done in their projects. I am facing lot problems like object dependencies (when want to test method which persist A object i have to first persist B object since A is child of B).

Please suggest some good books or sites preferably for learning design pattern for unit test cases. Or reference to some good source code or some discussion for Dos and Donts will do wonder. So that i can avoid doing mistakes be learning from experience of others.

© Programmers or respective owner

Related posts about java

Related posts about testing